build: Add fallback dependency discovery for MSVC
authorChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 12 Sep 2017 05:34:36 +0000 (13:34 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 15 Sep 2017 13:41:16 +0000 (21:41 +0800)
commit84ff9e93d54b0fbee4f92d42bff679db7d06afc8
tree258e1b0830b5b223761ec72fe69114939ce0a5e5
parentfc5f391110f71190db3a73a8722ba409336eedf3
build: Add fallback dependency discovery for MSVC

For dependencies that do not generate pkg-config files for their Visual
Studio build systems, we need to look for them using cc.has_header() and
cc.find_library(), namely for Cairo and HarfBuzz, if one does not have
crafted pkg-config files for them (which, by themselves may be
error-prone).

As a result, we will still try to look for Cairo and HarfBuzz using
pkg-config, but will give another shot at them on Visual Studio using
cc.has_header() and cc.find_library() if they couldn't be found via
pkg-config.

https://bugzilla.gnome.org/show_bug.cgi?id=785210
meson.build